package com.jiuyuan.mapper;

import com.jiuyuan.entity.Department;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author jiuyuan
 * @since 2023-02-15
 */
public interface DepartmentMapper extends BaseMapper<Department> {

    List<Department> allList(@Param("id") Integer id);

    Integer add(@Param("dept") Department department);

    void deleteWithCallback(@Param("dept") Department department);
}
